package com.zimi.bean;

public class Column {

    public String name;
    public String remark;
    public int sqlType;
    public int sqlColumnLength;
    public int sqlDecimalLength;
    public boolean sqlNotNull;
    public boolean sqlReadOnly;
    public String javaType;
    public String sqlTypeName;
    public String defalutValue;
    public String type;

    @Override
    public boolean equals(Object o) {
        boolean rv = false;
        if (o != null && o instanceof Column) {
            rv = (name.equals(((Column) o).name));
        }
        return rv;
    }

    @Override
    public int hashCode() {
        return (name != null) ? name.hashCode() : 0;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

    public int getSqlColumnLength() {
        return sqlColumnLength;
    }

    public void setSqlColumnLength(int sqlColumnLength) {
        this.sqlColumnLength = sqlColumnLength;
    }

    public int getSqlDecimalLength() {
        return sqlDecimalLength;
    }

    public void setSqlDecimalLength(int sqlDecimalLength) {
        this.sqlDecimalLength = sqlDecimalLength;
    }

    public boolean isSqlNotNull() {
        return sqlNotNull;
    }

    public void setSqlNotNull(boolean sqlNotNull) {
        this.sqlNotNull = sqlNotNull;
    }

    public boolean isSqlReadOnly() {
        return sqlReadOnly;
    }

    public void setSqlReadOnly(boolean sqlReadOnly) {
        this.sqlReadOnly = sqlReadOnly;
    }

    public int getSqlType() {
        return sqlType;
    }

    public void setSqlType(int sqlType) {
        this.sqlType = sqlType;
    }

    public String getSqlTypeName() {
        return sqlTypeName;
    }

    public void setSqlTypeName(String sqlTypeName) {
        this.sqlTypeName = sqlTypeName;
    }

    public String getDefalutValue() {
        return defalutValue;
    }

    public void setDefalutValue(String defalutValue) {
        this.defalutValue = defalutValue;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


}
